﻿using UnityEngine;
using System.Collections;

public class MouseUpdater : MonoBehaviour {

	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
		Camera cam = Camera.main;
		Vector3 v3 = new Vector3(Input.mousePosition.x, Input.mousePosition.y, 9);
		v3 = cam.ScreenToWorldPoint(v3);
		transform.position = v3;
	}
}
